package model.commands.environment;

import model.Environment;
import model.SyntaxErrorException;
import model.commands.Command;

/**
 * Name:
 * TOGGLEGRID
 * TG
 * 
 * Description:
 * Toggles the grid on or off
 *
 * @author Erick Gonzalez
 */
public class ToggleGridCommand extends Command {

    @Override
    public int evaluate (Environment e) throws SyntaxErrorException {
        e.toggleGrid();
        return 1;
    }

}
